﻿<Window x:Class="HDFSViewer.View.AddDirectoryWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        Title="Add Directory" Height="160" Width="300" WindowStartupLocation="CenterScreen" Icon="SmallImage/AddDirectory.png">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="5"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="5"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="5"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="5"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="5"/>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="5"/>
        </Grid.ColumnDefinitions>

        <Label Content="Path:" Grid.Row="1" Grid.Column="1"/>
        <TextBox x:Name="txtPath" Grid.Row="1" Grid.Column="2" Text="{Binding Path=Path,Mode=OneWay}" IsReadOnly="True"/>

        <Label Content="Directory Name:" Grid.Row="3" Grid.Column="1"/>
        <TextBox x:Name="txtDirectoryName" Grid.Row="3" Grid.Column="2" Text="{Binding Path=DirectoryName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
        
        <Grid Grid.Row="5" Grid.Column="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="20"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Button x:Name="btnOK" Content="OK" Grid.Column="0" Click="btnOK_Click" Command="{Binding Path=OK}"/>
            <Button x:Name="btnCancel" Content="Cancel" Grid.Column="2" Click="btnCancel_Click"/>
        </Grid>
    </Grid>
</Window>
